<template>
  <download-excel
    class="export-btn"
    :data="value"
    :fields="jsonFields"
    type="xls"
    :header="header"
    name="账单列表导出.xls"
  >
    <el-button type="primary">导出</el-button>
  </download-excel>
</template>

<script>
export default {
  props: ["bankInfo", "value"],
  components: {},
  data() {
    return {
      isShow: false,
      jsonFields: {
        //导出Excel表格的表头设置
        账单编号: "billNo",
        收款人: "payeeName",
        付款人: "payerName",
        总金额: "amount",
        创建时间: "createTime",
      },
    };
  },
  computed: {
    header() {
      return `银行账号：${this.bankInfo}`;
    },
  },
  created() {},
  methods: {
    open() {},
  },
};
</script>

<style></style>
